
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

public class Task {

    public static void main(String[] args) {
        ArrayList<String> names = new ArrayList<>();
        Collections.addAll(names, "张三丰", "赵无极", "周芷若", "张无忌", "赵敏", "张青");

        filterList(names, "张", 3);
    }

    public static List<String> filterList(List<String> names, String key, int length) {
        // 请在这里实现过滤筛选
        return null;
    }

}